FROM anapsix/alpine-java:8_server-jre_unlimited

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /iov-admin

WORKDIR /iov-admin

EXPOSE 4000

ADD ./target/iov-admin.jar ./

CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar iov-admin.jar
